package com.example.simple.work.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class Checking extends BaseEntity implements Serializable {

    private Integer id;
    private String employeeName;
    private String employeeId;
    private String phone;
    private String employeeDepartment;
    private Date holidayStart;
    private Date holidayEnd;
    private String more;
    private String holidayTime;
    private String employeeLeave;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmployeeDepartment() {
        return employeeDepartment;
    }

    public void setEmployeeDepartment(String employeeDepartment) {
        this.employeeDepartment = employeeDepartment;
    }

    public Date getHolidayStart() {
        return holidayStart;
    }

    public void setHolidayStart(Date holidayStart) {
        this.holidayStart = holidayStart;
    }

    public Date getHolidayEnd() {
        return holidayEnd;
    }

    public void setHolidayEnd(Date holidayEnd) {
        this.holidayEnd = holidayEnd;
    }

    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }

    public String getHolidayTime() {
        return holidayTime;
    }

    public void setHolidayTime(String holidayTime) {
        this.holidayTime = holidayTime;
    }

    public String getEmployeeLeave() {
        return employeeLeave;
    }

    public void setEmployeeLeave(String employeeLeave) {
        this.employeeLeave = employeeLeave;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Checking)) return false;
        if (!super.equals(o)) return false;
        Checking checking = (Checking) o;
        return Objects.equals(getId(), checking.getId()) && Objects.equals(getEmployeeName(), checking.getEmployeeName()) && Objects.equals(getEmployeeId(), checking.getEmployeeId()) && Objects.equals(getPhone(), checking.getPhone()) && Objects.equals(getEmployeeDepartment(), checking.getEmployeeDepartment()) && Objects.equals(getHolidayStart(), checking.getHolidayStart()) && Objects.equals(getHolidayEnd(), checking.getHolidayEnd()) && Objects.equals(getMore(), checking.getMore()) && Objects.equals(getHolidayTime(), checking.getHolidayTime()) && Objects.equals(getEmployeeLeave(), checking.getEmployeeLeave());
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getId(), getEmployeeName(), getEmployeeId(), getPhone(), getEmployeeDepartment(), getHolidayStart(), getHolidayEnd(), getMore(), getHolidayTime(), getEmployeeLeave());
    }

    @Override
    public String toString() {
        return "Checking{" +
                "id=" + id +
                ", employeeName='" + employeeName + '\'' +
                ", employeeId='" + employeeId + '\'' +
                ", phone='" + phone + '\'' +
                ", employeeDepartment='" + employeeDepartment + '\'' +
                ", holidayStart=" + holidayStart +
                ", holidayEnd=" + holidayEnd +
                ", more='" + more + '\'' +
                ", holidayTime='" + holidayTime + '\'' +
                ", employeeLeave='" + employeeLeave + '\'' +
                '}';
    }
}
